package com.yunxi.service.localService.otd;

import com.yunxi.core.service.IServicePlus;
import com.yunxi.model.otd.OtdWeekPlanSingle;
import com.yunxi.otd.pojo.OtdWeekPlanSingleVO;
import java.util.List;

/**
 * <p>
 * 生产计划 服务类
 * </p>
 *
 * @author XUQI
 * @since 2019-05-13
 */
public interface OtdWeekPlanSingleService extends IServicePlus<OtdWeekPlanSingle> {

    /**
     * 根据明细CODE查询单车数量
     */
    Integer findPlanCountByDetailCode(String detailCode);

    /**
     * 保留部分生产计划单车，删除多余的单车
     *
     * @param num 需要保留的数量
     */
    void retainSingleByNum(Integer num, String detailCode);


    void removePlanByDetailCode(String detailCode);


    List<OtdWeekPlanSingle> findListByDetailCode(String detailCode);


    void removeSingleByWeekPlanCode(String weekPlanCode);

    List<OtdWeekPlanSingleVO> findPlanListByCode(String weekPlanCode);
}
